<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="extjs/resources/css/ext-all.css">
<script type="text/javascript" src="extjs/ext.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/locale/ext-lang-zh_CN.js"></script>

<script src="js/menu.js"></script>
<script type="text/javascript">
	function showName() {
		if (arguments[0] == false) {
			exit(1);
		}
		document.getElementById("nickName").innerHTML = arguments[0];
	}

	//发送通知
	function send() {
		window.parent.document.getElementById("rightIframe").contentWindow
				.showSend();
	}

	//已发送
	function sent() {
		window.parent.document.getElementById("rightIframe").contentWindow
				.showSent();
	}
	//修改密码
	function modPwd() {
		window.parent.document.getElementById("rightIframe").contentWindow
				.modPwd();
	}
	//重置密码
	function resetPwd() {
		window.parent.document.getElementById("rightIframe").contentWindow
				.resetPwd();
	}
	//常用模版
	function commonModel() {
		window.parent.document.getElementById("rightIframe").contentWindow
				.commonModel();
	}
	//短信通讯录
	function smsbook() {
		window.parent.document.getElementById("rightIframe").contentWindow
				.smsbook();
	}
	//统计短信数量
	function sumSMS() {
		Ext.Ajax.request({
			url : 'getSMSCount',
			method : "GET",
			success : function(resp, opts) {
				alert("截至目前，您已累计发送:  " + resp.responseText + " 条短信");
			},
			failure : function(form, action) {
				alert("失败啦");
			}
		});
	}
	//退出系统
	function exit(arg) {
		parent.exit(arg);
	}
	//显示重置
	function showRest() {
		document.getElementById("resetTr").style.display = "";
	}
	//显示常用模版
	function showModel() {
		document.getElementById("modelTr").style.display = "";
	}
	//系统说明
	function explain() {
		window.parent.document.getElementById("rightIframe").contentWindow
				.explain();
	}
</script>
<link href="css/cont.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-size: 12px;
}
-->
</style>
</head>

<body>
	<table width="180" height="467px" border="0" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="34"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td width="48"><img src="images/left_09.gif" width="48"
							height="34"></td>
						<td align="center" background="images/left_10.gif"><span
							class="STYLE1">hi, </span><a href="#"><span id="nickName"></span></a></td>
						<td width="48"><img src="images/l_09.gif" width="48"
							height="34"></td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td valign="top" background="images/left_bg_03.gif" class="left_mid"
				height="420">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr style="cursor: pointer;">
						<td class="menu_first_img mouse" id="td1" onClick="show(1)"><span
							class="STYLE1" style="font-weight: bold; margin-left: 80px;">短信</span></td>
					</tr>
					<tr>
						<td id="show1"><table width="100%" border="0" cellspacing="0"
								cellpadding="0">
								<tr></tr>
								<tr>
									<td class="left" onclick="send();"><table width="100%"
											height="24" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td class="left_menu" align="center"><span
													class="STYLE1">发送通知</span></td>
											</tr>
										</table></td>
								</tr>
								<tr>
									<td class="left" onclick="sent();"><table width="100%"
											height="24" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<!-- 	<td width="40" align="center"><img src="images/5.jpg"
													alt="1" width="16" height="16"></td> -->
												<td class="left_menu" align="center"><span
													class="STYLE1" style="cursor: pointer">已发送</span></td>
											</tr>
										</table></td>
								</tr>

								<tr>
									<td class="left" onclick="smsbook();"><table width="100%"
											height="24" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<!-- 	<td width="40" align="center"><img src="images/5.jpg"
													alt="1" width="16" height="16"></td> -->
												<td class="left_menu" align="center"><span
													class="STYLE1" style="cursor: pointer">通讯录</span></td>
											</tr>
										</table></td>
								</tr>

								<tr>
									<td class="left" onclick="sumSMS();"><table width="100%"
											height="24" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td class="left_menu" align="center"><span
													class="STYLE1" style="cursor: pointer">短信统计</span></td>
											</tr>
										</table></td>
								</tr>

								<tr id="modelTr" style="display: none;">
									<td class="left" onclick="commonModel();"><table
											width="100%" height="24" border="0" cellpadding="0"
											cellspacing="0">
											<tr>
												<td class="left_menu" align="center"><span
													class="STYLE1" style="cursor: pointer;">常用模版</span></td>
											</tr>
										</table></td>
								</tr>
							</table></td>
					</tr>
					<tr style="cursor: pointer;">
						<td class="mouse menu_second_img" id="td2" onClick="show(2)"><span
							class="STYLE1" style="font-weight: bold; margin-left: 68px;">信息维护</span></td>
					</tr>
					<tr>
						<td id="show2" style="display: none;"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr></tr>
								<tr>
									<td class="left" onclick="modPwd();"><table width="100%"
											height="24" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td class="left_menu" align="center"><span
													class="STYLE1">修改密码</span></td>
											</tr>
										</table></td>
								</tr>
								<tr id="resetTr" style="display: none;">
									<td class="left" onclick="resetPwd();"><table width="100%"
											height="24" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td class="left_menu" align="center"><span
													class="STYLE1">重置密码</span></td>
											</tr>
										</table></td>
								</tr>
							</table></td>
					</tr>

					<tr>
						<td class="mouse menu_second_img" id="td3" onClick="show(3)"><span
							class="STYLE1"
							style="cursor: pointer; font-weight: bold; margin-left: 68px;">系统操作</span></td>
					</tr>
					<tr>
						<td id="show3" style="display: none;"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr></tr>
								<tr>
									<td class="left" onclick="exit(0);"><table width="100%"
											height="24" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td class="left_menu" align="center"><span
													class="STYLE1">退出系统</span></td>
											</tr>
										</table></td>
								</tr>
							</table></td>
					</tr>
					<tr>
						<td class="mouse menu_second_img" id="td4" onClick="show(4)"><span
							class="STYLE1"
							style="cursor: pointer; font-weight: bold; margin-left: 80px;">帮助</span></td>
					</tr>

					<tr>
						<td id="show4" style="display: none;"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr></tr>
								<tr>
									<td class="left" onclick="explain();"><table width="100%"
											height="24" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td class="left_menu" align="center"><span
													class="STYLE1">系统说明</span></td>
											</tr>
										</table></td>
								</tr>
							</table></td>
					</tr>
					<!-- 					<tr>
						<td class="mouse menu_second_img" id="td5" onClick="show(5)">&nbsp;</td>
					</tr>
					<tr>
						<td id="show5" style="display: none;"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">

								<tr>
									<td class="left"><table width="100%" height="24"
											border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td width="40" align="center"><img src="images/5.jpg"
													alt="1" width="16" height="16"></td>
												<td>&nbsp;</td>
											</tr>
										</table></td>
								</tr>
							</table></td>
					</tr> -->
				</table>
			</td>
		</tr>
		<tr>
			<td height="10"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td width="48"><img src="images/left_31.gif" width="48"
							height="13"></td>
						<td background="images/left_32.gif" class="left_b_m">&nbsp;</td>
						<td width="48"><img src="images/left_31_l.gif" width="48"
							height="13"></td>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>
